<?php 
for ($m=0;$m<$this->MenuBranch->length;$m++) { 
	$mItem = $this->MenuBranch->item($m);
?>
<div class="menuItem">
<?php if ($mItem->length == 0 )  {?>
<img src="<?= $this->baseUrl() ?>/cms/images/no_sub.gif" width="8" height="17" align="absmiddle" />
<?php } else { ?>
<img src="/cms/images/closed.gif" width="8" height="17" align="absmiddle" id="trigger<?= $mItem->menu_id ?>" 
	onmouseover="mt.initBranch(<?= $mItem->menu_id ?>,<?= $mItem->root_menu_id ?>,this,'menu<?= $mItem->menu_id ?>')" />
<?php } ?>
<a href="javascript:;" onclick="gotopoint(<?= $mItem->menu_id?>)" <?= CmsAccess::checkMenu($mItem->menu_id) && CmsAccess::checkModule('menu') ? "onmouseover=\"appendContextMenu(this,['add','up','down','edit','del','properties'".(CmsAccess::checkModule('administrators') ? ",'access'" : "")."],{$mItem->menu_id},{$mItem->root_menu_id},false)\"" : "" ?><?= $mItem->flag->is_hidden==1 ? ' class="hiddenFlag"' : ''?>><?= $mItem->name ?></a>
</div>

<?php if ($mItem->length>0) { ?> 
<div class="subMenuList" id="menu<?= $mItem->menu_id ?>"></div>
<?php } ?>
<?php } ?>